<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>English Phrases Practice</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>English Phrases Practice</h1>
            <button id="newQuizButton" class="new-quiz-btn">重新开始</button>
            <div class="stats">
                <span>Current Score: <span id="currentScore">0</span>/<span id="totalQuestions">20</span></span>
                <span>Accuracy: <span id="accuracy">0</span>%</span>
            </div>
        </div>

        <div class="quiz-section">
            <div class="phrase-display">
                <p id="context">Imagine you're in a conversation and want to express...</p>
                <p id="hint"></p>
            </div>
            <input type="text" id="userInput" placeholder="Type the English phrase/sentence...">
            <button id="checkAnswer">Check Answer</button>
            <button id="showHint">Show Chinese Tip</button>
            <p id="result"></p>
        </div>

        <div class="history-section">
            <h2>Practice History</h2>
            <div id="historyList"></div>
        </div>
    </div>
    <script src="phrases.js"></script>
    <script src="app.js"></script>
</body>
</html> 